# -*- coding: utf-8 -*-
# @Author  : wyh
# @Time    : 2022/2/16 15:51
# @File    : a
# @Email   : 2448979539@qq.com
from functools import wraps


def debug(func):
    @wraps(func)
    def wap(*args, **kwargs):
        res = func(*args, **kwargs)
        print(f'函数{func.__name__}的返回值为: {res}')
        return res
    return wap


class A(object):

    @debug
    def b(self):
        return '1234'



if __name__ == '__main__':
    a = A()
    a.b()